<?xml version="1.0"?>
<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
     <link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
     <link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
    <style type="text/css"> 
    	*{
			<#if .locale == "zh_CN">
			font-family: NotoSans, NotoSansCJKsc, sans-serif;
			<#elseif .locale == "zh_TW">
			font-family: NotoSans, NotoSansCJKtc, sans-serif;
			<#elseif .locale == "ja_JP">
			font-family: NotoSans, NotoSansCJKjp, sans-serif;
			<#elseif .locale == "ko_KR">
			font-family: NotoSans, NotoSansCJKkr, sans-serif;
			<#elseif .locale == "th_TH">
			font-family: NotoSans, NotoSansThai, sans-serif;
			<#else>
			font-family: NotoSans, NotoSansCJKsc, sans-serif;
			</#if>
		}
        body{
            margin: 0;
            padding: 0;
        }
        table.content{
        	width: 100%;
            height: 35mm;
            font-size: 8px;
            table-layout: fixed;
        }
        tr{
            height: 10px;
        }
         td{
        	vertical-align: middle;
        	text-align: center;
        } 
        span{
        	/*color: #999;*/
        }
    </style>
</head>
<body width="52mm" height="35mm">
    <#list label.packages as package>
    <table class="content">
        <tr>
			<td colspan="9">合同号:&nbsp;&nbsp;<span>${label.salesorder}</span></td>
        </tr>
        <tr>
			<td colspan="9">工单编号:&nbsp;&nbsp;<span>${label.tranid}</span></td>
        </tr>
        <tr>
            <td colspan="9">产品编号:&nbsp;&nbsp;<span>${label.itemid}</span></td>
        </tr>
        <tr>
            <td colspan="9">产品名称:&nbsp;&nbsp;<span>${label.itemname}</span></td>
        </tr>
        <tr>
            <td colspan="4">尺寸:&nbsp;&nbsp;<span>${label.size}</span></td>
            <td colspan="3">颜色:&nbsp;&nbsp;<span>${label.color}</span></td>
            <td colspan="2">色号:&nbsp;&nbsp;<span>${label.colornumber}</span></td>
        </tr>
        <tr>
			<td colspan="9">工艺:&nbsp;&nbsp;<span>${label.craft}</span></td>
        </tr>
		<tr>
            <td colspan="4">包号:&nbsp;&nbsp;<span>${package.number}/${label.packageQuantity}</span></td>
            <td colspan="5">数量:&nbsp;&nbsp;<span>${package.perQuantity}/${label.quantity}</span></td>
		</tr>
        <tr>
            <td colspan="2">条码:</td>
            <td colspan="7"><barcode codetype="code39" height="25px" width="125px" showtext="false" value="${package.barcode}"/></td>
        </tr>
    </table>
	</#list>
</body>
</pdf>